USING: io kernel math math.parser ;

readln string>number
dup dup * 3 * swap - 2 /
number>string print
